<?php

namespace app\admin\controller;

use app\admin\logic\transfer_driver\Driver;
use app\common\controller\Backend;
use app\common\library\Pingpp;
use think\Db;

/**
 * 后台首页
 * @internal
 */
class PingNotify extends Backend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

   public function notify() {
        $ping = new Pingpp();
        $ping->notify(function ($event) {
            $dirve = Driver::getDriver('tl');
            $dirve->notify($event);
        });
   }
}
